package com.a9_lin.www.testormlite.bean;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.field.ForeignCollectionField;
import com.j256.ormlite.table.DatabaseTable;

import java.io.Serializable;
import java.util.Collection;

/**
 * 设备设置的电子围栏列表
 * Created by macmini on 16/8/30.
 */
@DatabaseTable(tableName = "tb_fence")
public class Fence implements Serializable{

    private static final long serialVersionUID = 1L;

    @DatabaseField(generatedId = true)
    private int id;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @ForeignCollectionField(eager = false)
    private Collection<DsFence> ds ;

    public void setDs(Collection<DsFence> ds){
        this.ds = ds;
    }
    public Collection<DsFence> getDs(){
        return this.ds;
    }

    @Override
    public String toString() {
        return "Fence{" +
                "ds=" + ds +
                '}';
    }
}
